<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>display</title>
    <style>
        div, span {
            width: 100px;
            height: 100px;
            border: 1px solid red;
        }

        div:nth-child(1) {
            display: inline;/*行内元素*/
        }

        span:nth-child(2) {
            display: block;/*块元素*/
        }

        div:nth-child(3) {
            display: inline-block;/*行内块元素*/
            float: right;
        }

        span:nth-child(4) {
            display: none;/*不显示*/
        }
    </style>
</head>

<body>

<div>块元素</div>
<span>行内元素</span>
<div>块元素</div>
<span>行内元素</span>
<span>行内元素</span>

</body>
</html>